您可以使用 CLI 建立 Metro Mirror 或 Global Mirror 關係。
關於這項作業
請完成下列步驟來建立 Metro Mirror 或 Global Mirror 關係:
程序
-
如果要建立 Metro Mirror 關係,請執行
mkrcrelationship 指令。
例如,輸入:
mkrcrelationship -master master_volume_id
-aux aux_volume_id -cluster system_id
其中,master_volume_id 是主要磁區的 ID,aux_volume_id 是輔助磁區的 ID,system_id 是遠端叢集系統的 ID。
-
如果要建立新的 Global Mirror 關係,請執行帶有 -global 參數的
mkrcrelationship 指令。
例如,輸入:
mkrcrelationship -master master_volume_id
-aux aux_volume_id -cluster system_id -global
其中,master_volume_id 是主要磁區的 ID,aux_volume_id 是輔助磁區的 ID,system_id 是遠端系統的 ID。
-
如果要建立啟用循環的新關係,請輸入:
mkrcrelationship -master books_volume -aux books_volume -cluster DR_cluster -global -cyclingmode multi
註: 發出 chrcrelationship -auxchange 或 chrcrelationship
-masterchange,將變更磁區新增至關係。
-
如果要建立新的主動-主動關係,請執行帶有 -activeactive 參數的 mkrcrelationship 指令。
例如,輸入下列指令:
mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_id -activeactive
其中,master_volume_id 是主要磁區的 ID,aux_volume_id 是輔助磁區的 ID,system_id 是遠端系統的 ID。